<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ news_title }}</title>
</head>
<style>
    .subject{
        color: #2365a8;
    }
    .subject_content{
        font-size: small;
    }
    .body{
        font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    }
</style>
<body class="body">
    <center>
        <h2>{{ news_title }}</h2>
        <div class="subject_content">
            <span class="subject">发布日期: </span>
            <span>{{ news_date }} </span>
            <span> | </span>
            <span class="subject">信息类型: </span>
            <span>{{ news_type }}</span>
            <span> | </span>
            <span class="subject">作者: </span>
            <span>{{ news_author }}</span>
        </div>
    </center>
    <hr>
        {% for content in news_content %}
            {% if content.is_table %}
                <table border="1px" cellpadding="0px" style="border-collapse: collapse">
                    {% for tr in content.content %}
                        <tr>
                            {% for td in tr %}
                                <td colspan="{{ td.colspan }}" rowspan="{{ td.rowspan }}">{{ td.text }}</td>
                            {% endfor %}
                        </tr>
                    {% endfor %}
                </table>
            {% else %}
                <p>{{ content.content }}</p>
            {% endif %}
        {% endfor %}
</body>
</html>